<template>
  <div class="app-box">
    <router-view v-if="routes.path?.startsWith('/user')"></router-view>
<!--    <UserLoginLayout v-if="routes.path?.startsWith('/user/login')"/>-->
    <BasicLayout v-else/>
  </div>
</template>

<script setup>
import BasicLayout from "@/layout/BasicLayout.vue";
import UserLoginLayout from "@/layout/UserLoginLayout.vue";
import { onMounted } from "vue";
import { useRoute } from "vue-router";

const routes = useRoute();
const doInit = () => {
  console.log('项目打开啦！');
}

onMounted(() => {
  doInit();
})
</script>

<style scoped>
.app-box {
  width: 80%;
  height: 100vh;
  margin-left: 10%;
  margin-right: 10%;
}
</style>
